*-----------------------------------------------------------------
version 11
cap clear
cap log close
set more off
set mem 600m

cd "E:\REStat_MS14767_Vol96(2)\Data preparation Compustat segment"
log using "2_compustatamerica.log", replace
*-----------------------------------------------------------------

****************************************
* This short file only drops non-american firms
* from the compustat data set and creates a small
* set with the country information.
****************************************

*****
* 1 *
*****



use "clean_compustat_master.dta", clear

keep ticker countryinc year
so ticker year

save "ticker_country.dta", replace

*****
* 2 *
*****

use "clean_compustat_master.dta", clear

drop if countryinc!=0

save "compustat_master_america.dta", replace

*log close
